Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing impressions icon #12644

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

JorgeMucientes
Copy link
Contributor

@JorgeMucientes JorgeMucientes commented Sep 19, 2024

Closes: #12562

Description

Fixes an issue where the ℹ️ icon next to the impression label inside the Blaze budget screen, would go missing if the text was too long.

Steps to reproduce

From trunk

  1. Set Woo app language to Spanish
  2. Trigger Blaze campaign creation flow and navigate to the budget screen.
  3. Check the ℹ️ icon is missing next to the impressions label.

Testing information

Repeat the steps above from this branch and verify that the ℹ️ icon is displayed correctly when the text is one line (English) and when the text is 2 lines (Spanish for example)

The tests that have been performed

Tested Blaze campaign creation flow.

Images/gif

Expected UI:

Screenshot 2024-09-19 at 13 35 45
Screenshot 2024-09-19 at 13 35 21

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

Reviewer (or Author, in the case of optional code reviews):

Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement:

  • The PR is small and has a clear, single focus, or a valid explanation is provided in the description. If needed, please request to split it into smaller PRs.
  • Ensure Adequate Unit Test Coverage: The changes are reasonably covered by unit tests or an explanation is provided in the PR description.
  • Manual Testing: The author listed all the tests they ran, including smoke tests when needed (e.g., for refactorings). The reviewer confirmed that the PR works as expected on big (tablet) and small (phone) in case of UI changes, and no regressions are added.

@JorgeMucientes JorgeMucientes added this to the 20.5 milestone Sep 19, 2024
@JorgeMucientes JorgeMucientes added the feature: blaze Related to the Blaze project label Sep 19, 2024
@JorgeMucientes JorgeMucientes marked this pull request as ready for review September 19, 2024 11:36
append(stringResource(id = R.string.blaze_campaign_budget_reach_forecast))
appendInlineContent(id = id, alternateText = "[Icon]")
}
val inlineContent = mapOf(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up inlining the info icon to ensure it looks nice when the text is 2 lines.

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit27b95fa
Direct Downloadwoocommerce-wear-prototype-build-pr12644-27b95fa.apk

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit27b95fa
Direct Downloadwoocommerce-prototype-build-pr12644-27b95fa.apk

@wpmobilebot wpmobilebot modified the milestones: 20.5, 20.6 Sep 20, 2024
@wpmobilebot
Copy link
Collaborator

Version 20.5 has now entered code-freeze, so the milestone of this PR has been updated to 20.6.

@JorgeMucientes JorgeMucientes changed the title Issue/12562 missing impressions icon Missing impressions icon Sep 23, 2024
Copy link
Member

@hichamboushaba hichamboushaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, TIL about InlineTextContent 👍

@hichamboushaba hichamboushaba merged commit 9ac4db9 into trunk Sep 24, 2024
18 of 19 checks passed
@hichamboushaba hichamboushaba deleted the issue/12562-missing-impressions-icon branch September 24, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: blaze Related to the Blaze project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Blaze impressions info icon when the impressions label copy is very long
3 participants